<template>
  <div>
    <commonSel
      v-bind="$attrs"
      v-on="$listeners"
      @change="onChange"
      @onClear="onClear"
      :asyncFunction="asyncFunction"
      :keyValue="'title'"
    ></commonSel>
  </div>
</template>

<script>
import commonSel from "./index.vue";
import axios from "axios";
export default {
  name: "Sel",
  components: {
    commonSel,
  },
  methods: {
    onClear(e) {
      console.log(e);
    },
    onChange(rowKey) {
      console.log(rowKey);
    },
    asyncFunction(page, size) {
      console.log(page, size);
      return axios({
        url: "http://vueshop.glbuys.com/api/home/index/goodsLevel?token=1ec949a15fb709370f",
        method: "GET",
      }).then((res) => {
        return res.data.data;
      });
    },
  },
};
</script>

<style scoped></style>
